# coding=utf-8
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy()
db.init_app(app=app)
manger = Manager()
migrate = Migrate(app=app, db=db)
manger.__init__(app)
manger.add_command('db', MigrateCommand)

from app import views
